package com.gitee.zhanyao.cloud.security.controller;

import com.gitee.zhanyao.cloud.security.entity.system.SysUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * 帐号控制器
 */
@Slf4j
@RestController
public class AccountController {

    /**
     * 获取帐号信息
     */
    @GetMapping("/accounts")
    public ResponseEntity<SysUser> getAccount() {

        return null;
    }

    /**
     * 创建帐号
     */
    @PostMapping("/accounts")
    public ResponseEntity<SysUser> register(SysUser sysUser) {
        return new ResponseEntity<>(sysUser, HttpStatus.OK);
    }

    /**
     * 更新帐号
     */
    @PutMapping("/accounts")
    public void updateAccount() {

    }

    @DeleteMapping("/accounts")
    public void deleteAccount() {

    }

}
